package com.xishu.entity.plat;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 账号和公司的映射
 */
@Entity(name = "user_company_mapping")
@Table(indexes = {@Index(columnList = "userId"), @Index(columnList = "companyId")})
public class UserCompanyMapping extends AbstractEntity implements Serializable {
    @ApiModelProperty(value = "账号")
    private String userName;

    @ApiModelProperty(value = "账号ID")
    private Long userId;

    @ApiModelProperty(value = "公司账号")
    private String companyName;

    @ApiModelProperty(value = "公司ID")
    private Long companyId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }
}
